I have read an iPhone book there i find the user's Documents directory is with the code:
[NSHomeDirectory() stringByAppendingPathComponent:@"Documents"];
but that seems slightly brittle, and dissimiliar to the normal Mac way of doing it, which would be:
NSSearchPathForDirectoriesInDomains(NSDocumentsDirectory, NSUserDomainMask, YES);
Is there any particular reasons to use one over the other?
Anonymous User
08-Sep-2015Here is the code that I use in my framework.